package GUI;

import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.JTextArea;

public class EstimationStage_GUI extends JPanel {

	private JButton btnCancel;
	private JButton btnSubmit;
	private JTextArea requiredChange;
	private JTextArea profit;
	private JTextArea constraints;
	private JTextArea hazards;
	private JTextArea duration;
	private JButton btnViewRequest;
	
	public EstimationStage_GUI(){
		setLayout(null);
		
		JLabel lblDetermineStageDuration = DefaultComponentFactory.getInstance().createTitle("Estimation stage");
		lblDetermineStageDuration.setIcon(new ImageIcon(DetermineStageDuration_GUI.class.getResource("/Picture/Clipboard-icon.png")));
		lblDetermineStageDuration.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblDetermineStageDuration.setBounds(51, 11, 335, 128);
		add(lblDetermineStageDuration);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setIcon(new ImageIcon(Login.class.getResource("/Picture/Button-Close-icon.png")));
		btnCancel.setBounds(28, 497, 141, 47);
		add(btnCancel);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(Login.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(299, 497, 141, 47);
		add(btnSubmit);
		
		JLabel lblRequiredChange = new JLabel("Required change:");
		lblRequiredChange.setBounds(20, 160, 85, 30);
		add(lblRequiredChange);
		
		JLabel lblProfit = new JLabel("Profit:");
		lblProfit.setBounds(20, 235, 46, 14);
		add(lblProfit);
		
		JLabel lblConstraints = new JLabel("Constraints:");
		lblConstraints.setBounds(20, 311, 85, 21);
		add(lblConstraints);
		
		JLabel lblHazards = new JLabel("Hazards:");
		lblHazards.setBounds(20, 380, 46, 14);
		add(lblHazards);
		
		JLabel lblDurationExtimation = new JLabel("Duration estimation:");
		lblDurationExtimation.setBounds(20, 444, 123, 31);
		add(lblDurationExtimation);
		
		requiredChange = new JTextArea();
		requiredChange.setBounds(126, 150, 259, 41);
		add(requiredChange);
		
		profit = new JTextArea();
		profit.setBounds(126, 223, 259, 41);
		add(profit);
		
		constraints = new JTextArea();
		constraints.setBounds(126, 291, 259, 41);
		add(constraints);
		
		hazards = new JTextArea();
		hazards.setBounds(126, 364, 259, 41);
		add(hazards);
		
		duration = new JTextArea();
		duration.setBounds(126, 434, 259, 41);
		add(duration);
		
		btnViewRequest = new JButton("view request");
		btnViewRequest.setBounds(318, 103, 122, 36);
		add(btnViewRequest);
	}

	public JButton getBtnCancel() {
		return btnCancel;
	}

	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}

	public JButton getBtnSubmit() {
		return btnSubmit;
	}

	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}

	public JTextArea getRequiredChange() {
		return requiredChange;
	}

	public void setRequiredChange(JTextArea requiredChange) {
		this.requiredChange = requiredChange;
	}

	public JTextArea getProfit() {
		return profit;
	}

	public void setProfit(JTextArea profit) {
		this.profit = profit;
	}

	public JTextArea getConstraints() {
		return constraints;
	}

	public void setConstraints(JTextArea constraints) {
		this.constraints = constraints;
	}

	public JTextArea getHazards() {
		return hazards;
	}

	public void setHazards(JTextArea hazards) {
		this.hazards = hazards;
	}

	public JTextArea getDuration() {
		return duration;
	}

	public void setDuration(JTextArea duration) {
		this.duration = duration;
	}

	public JButton getBtnViewRequest() {
		return btnViewRequest;
	}

	public void setBtnViewRequest(JButton btnViewRequest) {
		this.btnViewRequest = btnViewRequest;
	}
	
	
}
